import control.GameController;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

/**
 * Starts the game engine with the specified game properties file
 * 
 * @author Mark Govea, Zachary Michaelov, Grant Oakley, and Sam Rang
 */
public class Main {
    /**
     * @param args s
     */
    public static void main (String[] args) {
        Properties game = new Properties();
        String prop = "src/data/game.cfg";
        if (args.length > 0) {
            prop = args[0];
        }
        try {
            game.load(new FileInputStream(prop));
        }
        catch (FileNotFoundException e) {
            e.printStackTrace();
        }
        catch (IOException e) {
            e.printStackTrace();
        }
        GameController controller = new GameController(game);
    }

}
